package com.gongzhiyun.springboot3test.entity.user;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_user_info")
@Schema(description = "用户信息表")
public class TbUserInfo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "用户id", example = "1")
    private Integer id;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "用户id", example = "1")
    private Integer uid;
    @Schema(description = "用户昵称", example = "gzy")
    private String nickname;
    @Schema(description = "用户性别", example = "m:男,n:保密,f:女性")
    private String sex;
    @Schema(description = "用户邮箱", example = "gzy@qq.com")
    private String email;
    @Schema(description = "用户手机号", example = "12345678901")
    private String phone;
    @Schema(description = "用户qq", example = "12345678901")
    private String qq;
    @Schema(description = "用户微信", example = "gzy")
    private String wechat;
    @Schema(description = "用户简介", example = "gzy")
    private String info;
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)

    @Schema(description = "最后更新时间", example = "2023-05-01 12:00:00")
    private Date lastupdate;
}
